import { post } from 'utils/fetch';


// 流程详情
export const getModelDetail = ({ modelId }) => {
  return post(`/flow-platform/model/detail`, { modelId });
}

export const getDeploymentDetail = ({ deploymentId }) => {
  return post(`/flow-platform/model/deployment/detail`, { deploymentId });
}

// 流程模型保存
export const saveModel = ({ description, name, revision, modelId, modelJson }) => {
  return post(`/flow-platform/model/save`, { description, name, revision, modelId, modelJson });
}
